import base from './base'

/**
  * 医学调研
  */

export default class News extends base {
    /**
   * 医学调研列表
   */
    static async getList(options) {
        const url = `${this.baseUrl}/adm/research`
        return this.get(url, options)
    }

    /**
  * 删除医学调研
  */
    static async deleteMedical(options, id) {
        const url = `${this.baseUrl}/adm/research/` + id
        return this.delete(url, options)
    }

    /**
* 暂停医学调研
*/
    static async stopMedical(options, id) {
        const url = `${this.baseUrl}/adm/research/stop/` + id
        return this.post(url, options)
    }
    /**
    * 开启医学调研
    */
    static async startMedical(options, id) {
        const url = `${this.baseUrl}/adm/research/start/` + id
        return this.post(url, options)
    }

    /**
* 医学调研详情
*/
    static async getDetails(options, id) {
        const url = `${this.baseUrl}/adm/research/` + id
        return this.get(url, options)
    }
    /**
* 新增/编辑
*/
    static async add(options) {
        const url = `${this.baseUrl}/adm/research`
        return this.post(url, options)
    }

    /**
* 获取医学调研编辑
*/
    static async getEditDetails(options, id) {
        const url = `${this.baseUrl}/adm/research/` + id + `/edit`
        return this.get(url, options)
    }
}
